#include<iostream>
using namespace std;
int main()
{
	float x,y;
	cin>>x;
	if(x>=15){
		y=2.5*x-17.5;
	}else{
		y=4.0/3*x;
	}
	printf("%.2f",y);
	return 0;
}
